﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>论坛</title>
<link rel="stylesheet" type="text/css" href="../public/home/css/style_1_common.css" />
    <link rel="stylesheet" type="text/css" href="../public/home/css/style_1_forum_index.css" />
    <link rel="stylesheet" id="css_extstyle" type="text/css" href="../public/home/css/style.css" />
<script src="../public/home/js/common.js" type="text/javascript"></script>
<script src="../public/home/js/forum.js" type="text/javascript"></script>
<script src="../public/home/js/lunbo.js" type="text/javascript"></script>

    <style>
        #jishu{
            width:950px;
            border-radius:5px;
            margin-top:12px;
            float:left;
            margin-bottom: 10px;
            background-color:white;
        }
        #xdl{
            width:950px;
            border-radius:5px;
            margin-top:12px;
            float:left;
            background-color:white;
        }
        #qushi{
            width:950px;
            border-radius:5px;
            margin-top:12px;
            float:left;
            background-color:white;

        }
        #yishi{
            width:950px;
            border-radius:5px;
            margin-top:12px;
            float:left;
            background-color:white;

        }
        #youqing{
            width:950px;
            border-radius:5px;
            margin-top:12px;
            float:left;
            background-color:white;
            margin-bottom:20px;
            padding-bottom:10px;
        }
        #youqing ul{
            padding:10px;
            list-style:none;
        }
        #youqing ul li{
            float:left;
        }
        #youqing ul li a{
            color:#636969;
            font-size:13px;
            margin-left:10px;
        }
        #youqing ul li a:hover{
            text-decoration:underline;
        }
        .biaoti{
            height:40px;
            border-bottom:1px solid #EFEFEF;
            background-image:url("../public/home/images/bgtiao.png");
            line-height:40px;
        }
        .dabiao{
            width:40px;
            height:40px;
            float:left;
            background-image:url("../public/home/images/dabiao.png");
            background-repeat:no-repeat;
            background-position:center;
        }
        .biaoti h5{
            float:left;
        }
        .topjian{
            width:40px;
            height:40px;
            float:right;
            background-image:url("../public/home/images/topjian.png");
            background-repeat:no-repeat;
            background-position:center;
        }
        .neirong{
            width:930px;
            margin:10px;
            float:left;
            /*border:1px solid red;*/
        }
        .bankuai{
            width: 310px;
            height: 75px;
            line-height: 75px;
            float: left;
            /*border:1px solid red;*/
        }
        .tu{

            margin-top:6px;
            float:left;
            /*border:1px solid red;*/
        }
        .wen{
            margin-left: 10px;
            width:180px;
            height:150px;
            margin-top:6px;
            float:left;
            /*border:1px solid red;*/
        }
        .wen ul{
            list-style:none;
            font-size:13px;
            margin-top:3px;
            margin-left:5px;
            color:#636969;
            line-height:18px;
        }
        .wen ul li a.dbt{
            color:#075991;
            font-weight:bold;
        }
        .wen ul li a:hover{
            text-decoration:underline;
        }
        .wen ul li span{
            color:#ff6600;
        }
        #tp{ height: 400px;
            position: relative; overflow: hidden;}
        #tp ol{position:absolute;
            right:5px;
            bottom:10px;}
        #tp ol li{height:20px; width: 20px;
            background:#ccc;
            border:solid 1px #666;
            margin-left:5px;
            color:#000;
            float:left;
            text-align:center;
            cursor:pointer;}
        #tp ol .on{background:#E97305;
            color:#fff;}
        ol{ list-style: none}
        #banner{ border-radius: 6px; border: 1px solid silver; margin-top: 10px;}
        #scbar_btn{
         background: #5e5e5e; width: 50px;
            height: 30px; margin-bottom: 8px; margin-left: 10px;
        }
    </style>
</head>
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="toptb" class="cl">
    <div class="wp">
        <div class="z"><a href="javascript:;"  onclick="setHomepage('#');">设为首页</a><a href="#"  onclick="addFavorite(this.href, '思爱婚介');return false;">收藏本站</a></div>
        <div class="y">
            <a id="switchblind" href="javascript:;" onClick="toggleBlind(this)" title="开启辅助访问" class="switchblind">开启辅助访问</a>
        </div>
    </div>
</div>

<div id="qmenu_menu" class="p_pop blk" style="display: none;">
    <div class="ptm pbw hm">
        请 <a href="javascript:;" class="xi2" onclick="lsSubmit()"><strong>登录</strong></a> 后使用快捷导航<br />没有帐号？<a href="./register/register.php" class="xi2 xw1">立即注册</a>
    </div>
    <div id="fjump_menu" class="btda"></div></div><div id="hd">
    <div class="wp">
        <div class="hdc cl"><h2><a href="index.php" title="思爱婚介"><img src="../public/home/images/logo.png" alt="思爱婚介" border="0" /></a>
            </h2>
            <?php
            require 'config.php';
            @$id = $_COOKIE['id1'];
            @$sql = "select * from userdetail where uid = $id ";
            @$result = mysqli_query($link,$sql);
            @$rows = mysqli_fetch_assoc($result);
            @$photo = $rows['photo'];
            @$fh='x_';
            @$hz=basename($photo);
            @$logo1 = './images/'.$hz;
            @$logo ='./upuser/images/'.$fh.$hz;
            @$sql1 = "select * from jifen where uid = $id";
            @$result1 = mysqli_query($link,$sql1);
            @$rows1 = mysqli_fetch_assoc($result1);
            @$jien = $rows1['integral'];
            @$group = $rows1['group'];
            if ($jien <= 100){
                $group = '黑铁';
            }elseif ($jien <= 200 && $jien>100){
                $group = '白银';
            }elseif ($group <= 300 && $jien>200){
                $group = '黄金';
            }elseif ($group <= 400 && $jien>300){
                $group = '白金';
            }elseif ($group <= 500 && $jien>400){
                $group = '钻石';
            }elseif ($group>500){
                $group = '王者';
            }
            ?>
        <?php
            @$auth = $_COOKIE['uname1'];
            @$auth1 = $_COOKIE['auth1'];
          if(empty($auth)){
              echo '<form method="post" autocomplete="off" id="lsform" action="contro.php?a=login">
                <div class="fastlg cl">
                    <span id="return_ls" style="display:none"></span>
                    <div class="y pns">
                        <table cellspacing="0" cellpadding="0">
                            <tr>

                                <td>用户名:<input type="text" name="uname" id="ls_username" autocomplete="off" class="px vm" tabindex="901" /></td>
                                <td class="fastlg_l"><label for="ls_cookietime"><input type="checkbox" name="ji" value="1"/>记住密码</label></td>
                                <td>&nbsp;<a href="../mima/mima.php">找回密码</a></td>
                            </tr>
                            <tr>
                                <td>密　码:<input type="password" name="pwd" id="ls_username" autocomplete="off" class="px vm" tabindex="901" /></td>
                                <td class="fastlg_l"><input type="submit" class="pn vm" tabindex="904" value="登录" style="width: 75px;"></input></td>
                                <td>&nbsp;<a href="./register/register.php" class="xi2 xw1">立即注册</a></td>
                            </tr>
                        </table>
                        <input type="hidden" name="quickforward" value="yes" />
                        <input type="hidden" name="handlekey" value="ls" />
                    </div>
                </div>
            </form>';
          }else{
              if ($auth1 =='普通用户'){
                  echo "
                <div id=\"um\" style='float: right;'>
                <p style='float: left'>
                <img style='height: 50px;' src=\"{$logo}\"></p>
                <div style='float: right; margin-left: 10px;'>
                <strong><a href=\"./upuser/update.php\">{$auth}</a></strong>
                <span class=\"pipe\">|</span><a href=\"./upuser/update.php\">完善资料</a>
                <span class=\"pipe\">|</span><a href=\"\">签到</a>
                <span class=\"pipe\">|</span><a href='vip.php'>
                    充值会员
                </a>
                <script language=\"javascript\">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><span class=\"pipe\">|</span>
               
                <span class=\"pipe\">|</span><a href=\"contro.php?a=exit\">退出</a>
                <p>
<a href=\"\" id=\"extcreditmenu\"  class=\"showmenu\" initialized=\"true\">积分:  $jien</a>
<span class=\"pipe\">|</span><a href=\"\" id=\"g_upmine\" class=\"showmenu\">用户组:  $group</a>
</p>
                </div>
                
                </div>";
              }else{
                  echo "
                <div id=\"um\" style='float: right;'>
                <p style='float: left'>
                <img style='height: 50px;' src=\"{$logo}\"></p>
                <div style='float: right; margin-left: 10px; '>
                <strong><a href=\"\" target=\"_blank\" style='color:red;'>{$auth}</a></strong>
                <span class=\"pipe\">|</span><a href=\"./upuser/update.php\">完善资料</a>
                <span class=\"pipe\">|</span><a href=\"\">签到</a>
                <span class=\"pipe\">|</span><a href='vip.php'>
                    充值会员
                </a>
                <script language=\"javascript\">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><span class=\"pipe\">|</span>
              
                <span class=\"pipe\">|</span><a href=\"contro.php?a=exit\">退出</a>
                  <p>
<a href=\"\" id=\"extcreditmenu\"  class=\"showmenu\" initialized=\"true\">积分: $jien</a>
<span class=\"pipe\">|</span><a href=\"\" id=\"g_upmine\" class=\"showmenu\">用户组:  $group</a>
</p>
                </div>
                
                </div>";
              }

          }
                        ?>



        </div>
            <?php
            if (!empty($sear)){
                $sql = "select * from user where auth <2 and userName like '%$sear%'";
                $result = mysqli_query($link,$sql);
                $rows = mysqli_fetch_assoc($result);
                $aid = $rows['id'];
            }
            ?>
        <div id="nv">
            <a href="javascript:;" id="qmenu" onMouseOver="delayShow(this, function () {showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});showForummenu();})">快捷导航</a>
            <ul><li class="a" id="mn_forum" ><a href="./index.php" hidefocus="true" title="BBS" target="_blank"  >论坛首页<span>BBS</span></a>
                <li id="mn_F478" ><a href="#" hidefocus="true"  >两性课堂</a></li>
                <li id="mn_F477" ><a href="#" hidefocus="true"  >网上征婚指南</a></li>
                <li id="mn_F476" ><a href="#" hidefocus="true"  >成功案例</a></li>
                <li id="mn_F482" ><a href="#" hidefocus="true"  >专家咨询</a></li></ul>
        </div>
        <div id="mu" class="cl">
        </div><div id="scbar" class="cl">
            <form id="scbar_form" method="post" action="./search.php?a=sea" >

                <input type="hidden" name="id" id="scbar_mod" value="<?php echo @$aid;?>"/>

                <table cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="scbar_icon_td"></td>
                        <td class="scbar_txt_td"><input type="text" name="sear" id="scbar_txt" placeholder="请输入搜索内容" /></td>
                        <td style="padding-left: 10px"><select name="select">
                                <option value="1">帖子</option>
                                <option value="3">用户</option>
                                <option value="4">板块</option>
                            </select></td>
                        <td ><input type="submit" name="" id="scbar_btn" class="pn pnc" value="搜索" ></td>
                        <td class="scbar_hot_td">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
<ul id="scbar_type_menu" class="p_pop" style="display: none;"><li>
 <a href="javascript:;" rel="user">用户</a></li></ul>
<script type="text/javascript">
initSearchmenu('scbar', '');
</script>
</div>
</div>


<div id="wp" class="wp">
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="首页">思爱婚介</a><em>&raquo;</em><a href="#">论坛首页</a></div>
<div class="z"></div>
</div>



<style id="diy_style" type="text/css">#frameIg2YaD {  margin-bottom:2px !important;}#portal_block_23 {  margin-top:0px !important;margin-right:2px !important;margin-bottom:0px !important;margin-left:0px !important;}#portal_block_23 .dxb_bc {  margin:0px !important;}#portal_block_24 {  margin:0px !important;background-color:#faf5ed !important;background-image:none !important;}#portal_block_24 .dxb_bc {  margin:0px !important;}#frametSDgcq {  margin:0px !important;}</style>

<div class="wp">
<div id="diy1" class="area"><div id="frameIg2YaD" class=" frame move-span cl frame-1">
	<div id="frameIg2YaD_left" class="column frame-1-c"><div id="frameIg2YaD_left_temp" class="move-span temp"></div>
		<div id="portal_block_23" class="block move-span"><div id="portal_block_23_content" class="dxb_bc">
      <div id="banner" class="comwidth">

          <div id="tp" style="width: 100%">
              <ul id="imgbox">
                  <li><img src="../public/home/images/bg1.jpg" alt=""></li>
                  <li><img src="../public/home/images/bg2.jpg" alt=""></li>
                  <li><img src="../public/home/images/bg3.jpg" alt=""></li>

              </ul>
              <ol id="list">
                  <li class="on">1</li>
                  <li>2</li>
                  <li>3</li>

              </ol>
          </div>
      </div>
	
	</div></div></div></div>

    <div id="framemadWWz" class="frame move-span cl frame-1">
        <div class="frame-title title"><span class="titletext" style="font-size:16px;margin-left:10px;color:rgb(255, 255, 255);">
       <img src="../public/home/images/tjhy.gif" class="vm" alt="。"/>。
            </span></div></div>
        <!--技术交流开始-->

            <!--技术交流开始-->

    <div id="framemadWWz_left" class="column frame-1-c">
        <div id="portal_block_30_content" class="dxb_bc">
            <div class="module cl ml">

                    <?php
                    if ($auth1 =='普通用户'){
                    $sql = "select * from user where auth=1 limit 0,5";
                    $result = mysqli_query($link,$sql);
                    while($rows = mysqli_fetch_assoc($result)){
                            $id= $rows['id'];
                            $sql2 = "select * from userdetail where uid=$id and work ='有'";
                            $result2 = mysqli_query($link,$sql2);
                            $rows2 = mysqli_fetch_assoc($result2);
                            if ($rows2){
                                $logo = $rows2['photo'];
                                $logo = trim($logo,'.');
                                $content = $rows2['content'];
                                $id = $rows2['uid'];

                     ?>

                            <ul>
                                <li style="width: 177px;">
                                    <img src="./upuser/<?php echo $logo?>" width="177" height="177"/>
                                    <p><a href="./userlist/erro.php?id=<?php echo $id ?>"><?php echo $content?></a></p>
                                </li>
                            </ul>

                        <?php
                    } }}
                    ?>
                <?php
                if (empty($auth)){
                    $sql = "select * from user where auth=1 limit 0,5";
                    $result = mysqli_query($link,$sql);
                    while($rows = mysqli_fetch_assoc($result)){
                        $id= $rows['id'];
                        $sql2 = "select * from userdetail where uid=$id and work ='有'";
                        $result2 = mysqli_query($link,$sql2);
                        $rows2 = mysqli_fetch_assoc($result2);
                        if ($rows2){
                            $logo = $rows2['photo'];
                            $logo = trim($logo,'.');
                            $content = $rows2['content'];
                            $id = $rows2['uid'];
                            ?>
                            <ul>
                                <li style="width: 177px;">
                                    <img src="./upuser/<?php echo $logo?>" width="177" height="177"/>
                                    <p><a onclick="jquery:alert('请先登录')"><?php echo $content?></a></p>
                                </li>
                            </ul>

                            <?php
                        } }}
                ?>
                <?php
                if ($auth1 =='会员用户'){
                    $sql = "select * from user where auth=1 limit 0,5";
                    $result = mysqli_query($link,$sql);
                    while($rows = mysqli_fetch_assoc($result)){
                        $id= $rows['id'];
                        $sql2 = "select * from userdetail where uid=$id and work ='有' ";
                        $result2 = mysqli_query($link,$sql2);
                        $rows2 = mysqli_fetch_assoc($result2);
                        if ($rows2){
                            $logo = $rows2['photo'];
                            $logo = trim($logo,'.');
                            $content = $rows2['content'];
                            $id = $rows2['uid'];
                            ?>
                            <ul>
                                <li style="width: 177px;">
                                    <img src="./upuser/<?php echo $logo?>" width="177" height="177"/>
                                    <p><a href="./userlist/userlist.php?id=<?php echo $id ?>"><?php echo $content?></a></p>
                                </li>
                            </ul>

                            <?php
                        } }}
                ?>
            </div>
        </div>
                </div>
            </div>
            <!--技术交流结束-->


    <?php
    $sql = "select * from type where pid=0";
    $result = mysqli_query($link, $sql);
    while ($rows = mysqli_fetch_assoc($result)) {
          $id = $rows['id'];
        ?>
        <!--技术交流开始-->
        <div id="jishu">
            <div class="biaoti">
                <div class="dabiao"></div>
                <h5>:::.<?php echo $rows['name'] ?>:::.</h5>
                <div class="topjian"></div>
            </div>
            <div class="neirong">
                <?php
                $sql2 = "select * from type where pid=".$rows['id'];
                $result2 = mysqli_query($link,$sql2);
                while($rows2 = mysqli_fetch_assoc($result2)) {
                    $id = $rows2['id'];
                    $na = $rows2['name'];
                    $logo = trim($rows2['blogo'],'.');
                    $time = strtotime(date("Y-m-d"),time());
                    $sql3 ="select count(ctime) as count from post where ctime > $time and tid = $id";
                    $result3 = mysqli_query($link,$sql3);
                    $num =mysqli_fetch_assoc($result3);
                    $count = $num['count'];
                    $sql4 = "select count(title) as zhu from post where tid = $id";
                    $result4 = mysqli_query($link,$sql4);
                    $cou = mysqli_fetch_assoc($result4);
                    $cou1 = $cou['zhu'];
                    $sql5 = "select * from post where ctime = (select max(ctime) from post where tid = $id )";
                    $result5 = mysqli_query($link,$sql5);
                    $ctime = mysqli_fetch_assoc($result5);
                    $ctime1 = $ctime['ctime'];
                    $ctime2 = date('Y-m-d H:i:s',$ctime1);
                    ?>
                    <div class="bankuai">
                        <div class="tu">
                            <a href="./list/list.php?id=<?php echo $id;?>&count=<?php echo $count?>&logo=<?php echo $logo?>&title=<?php echo $na?>&count1=<?php echo $cou1?>"><img style="margin-top: 5px;" src="<?php echo '../admin/plate'.$logo?>" width="50" height="50"/></a>
                        </div>
                        <div class="wen">
                            <ul>
                                <li><a href="./list/list.php?id=<?php echo $id;?>" class="dbt"><?php echo $rows2['name']?></a><span>（今日<?php echo $count?>）</span></li>
                                <li>主题：<?php echo $cou1;?></li>
                                <li>最后发帖:<?php echo $ctime2;?></li>
                            </ul>
                        </div>
                    </div>
                    <?php
                }
                ?>
            </div>
        </div>
        <!--技术交流结束-->
        <?php
    }
    mysqli_free_result($result);
    mysqli_free_result($result2);
    mysqli_free_result($result3);
    mysqli_free_result($result4);
    mysqli_free_result($result5);
    mysqli_close($link);
    ?>



<!--[/diy]-->



    <!--[/diy]-->
</div></div>
    <div id="ct" class="wp cl">
        <div id="chart" class="bm bw0 cl">

        </div>
        <!--[diy=diy_chart]-->
        <div id="portal_block_28_content" class="dxb_bc"><div class="portal_block_summary">
                <img src="../public/home/images/01.png" alt="征婚交友" title="征婚交友"></div></div>

        <script>fixed_top_nv();</script>	</div>

    <div id="ft" class="wp cl">
        <div id="flk" class="y">
            <p>

                <a href="#" title="QQ"><img src="../public/home/images/site_qq.jpg" /></a><span class="pipe">|</span>
                <a href="#" >小黑屋</a><span class="pipe">|</span><strong><a href="#">思爱婚介</a></strong>
                ( <a href="#">辽ICP备17005792号</a> | <a  href="#">
                    <img src="../public/home/images/batb.png"/>辽公网安备 21070302000224号</a> )<script>
                    var _hmt = _hmt || [];
                    (function() {
                        var hm = document.createElement("script");
                        hm.src = "https://hm.baidu.com/hm.js?9e8c3f499ab5f67dea0fd34fd9d213e6";
                        var s = document.getElementsByTagName("script")[0];
                        s.parentNode.insertBefore(hm, s);
                    })();
                </script>
            </p>
            <p class="xs0">
                GMT+8, 2018-12-12 10:42<span id="debuginfo">
</span>
            </p>
        </div>
        <div id="frt">
            <p>Powered by <strong><a href="#">Discuz!</a></strong> <em>X3.4</em></p>
            <p class="xs0">&copy; 2001-2018 <a href="#">Comsenz Inc.</a></p>
        </div></div>


    <div id="scrolltop">
        <span hidefocus="true"><a title="返回顶部" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>返回顶部</b></a></span>
    </div>
<script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script>
<script type="text/javascript">
    if($('debuginfo')) {
        $('debuginfo').innerHTML = '. This page is cached  at 10:42:19  .';
    }
</script></div>
</body></html>